<?php
require_once ("../model/PartNumberToMoney.php");
session_start();
if(!isset($_SESSION['adminlogintconline'])) {
	header("Location: admintaichinh.php");
}
?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>Tài Chính - Quản Lý</title>
	<link rel="stylesheet" type="text/css" href="../css/style_admin.css" />
   	<script src="../js/jquery-1.8.3.js"></script>
</head>
<body>
<noscript><h3 style="color:red">Trình duyệt không hổ trợ javascript sẽ có 1 số chức năng không thể thực hiện được vui lòng kiểm tra và bật chế độ hổ trợ javascript</h3></noscript>
<div id="homepage"></div>
<div id="outer">
    <div id="header">
        
        <div id="nav">
            <ul>
                <li class="first">
                    <a href="/">Trang Chủ</a>
                </li>
                <li>
                    <a href="admin.php?content=quanlivay">QL Vay</a>
                </li>
                <li>
                    <a href="admin.php?content=quanlinganhang">QL Ngân Hàng</a>
                </li>
                <li>
                    <a href="admin.php?content=quanlythetindung">Thẻ Tín Dụng</a>
                </li>
                <li>
                    <a href="admin.php?content=quanlybaohiem">Bảo Hiểm</a>
                </li>
                <li>
                    <a href="admin.php?content=quanlyuudai">Ưu Đãi</a>
                </li>
                <li>
                    <a href="admin.php?content=daily">QL Đại Lý</a>
                </li>
                <li>
                    <a href="admin.php?content=quan-ly-doi-tuong-vay">Đối Tượng Vay</a>
                </li>
                <li>
                    <a href="admin.php?content=apply-from-web">Apply From WEB</a>
                </li>
                <li>
                    <a href="admin.php?content=quanlykhac">QL Khác</a>
                </li>
                <li class="last">
                    <a href="logout.php">Thoát</a>
                </li>
            </ul><br class="clear" />
        </div>
    </div>
    <div id="main">
    	<?php
		if(isset($_GET['content'])) {
			$content = $_GET['content'];
			if($content == "quanlinganhang") {
				include('quanlinganhang.php');
			} else if ($content == "quanlivay") {
				include('quanlivay.php');
			} else if($content == "quanlykhac") {
				include('adminother.php');
			} else if($content == "quanlythetindung") {
				include('quanlythetindung.php');
			} else if($content == "quanlybaohiem") {
				include('quanlybaohiem.php');
			} else if($content == "quanlyuudai") {
				include('quanlyuudai.php');
			} else if($content == 'daily') {
				include('quanlydealer.php');
			} else if ($content == 'quan-ly-doi-tuong-vay') {
				include('quanly-doituongvay.php');
			} else if ($content == 'apply-from-web') {
				include('ApplyFromWeb.php');
			}
		}
		?>
        <!--<div id="sidebar">
            <div class="box">
                <h3>
                    Manage Question
                </h3>
                <div class="dateList">
                    <ul class="svertical">
                        <li class="first"><a href="../admin_question.aspx">All Question</a></li>
                        <li><a href="../admin_add_question.aspx" >New Question</a></li>	
                        <li><a href="../admin_category_question.aspx">Category Question</a></li>
                        <li><a href="../admin_question_table.aspx">Question Table</a></li>
                        <li class="last"><a href="../admin_new_question_table.aspx">New Question Table</a></li>
                    </ul>
                </div>
            </div>
            
        </div>
        <div id="content">
            <div class="box">
                <h3>code o day nua nha dai ca</h3>
                
            </div>
            <br class="clear" />
        </div>-->
        <br class="clear" />
    </div>
</div>
<div id="copyright">
    &copy; Tài Chính Online 2013. Design by dlduynam.<br />Email: dlduynam@gmail.com.
</div>
<?php
if(!isset($_GET['as'])) {
?>
<script src="../js/jquery.min2.js"></script>
<script src="../js/jquery.min.menu.js"></script>
<script src="../js/ddaccordion.js"></script>
<script type="text/javascript">ddaccordion.init({headerclass: "submenuheader", contentclass: "submenu", revealtype: "click", mouseoverdelay: 200, collapseprev: true, defaultexpanded: [], onemustopen: false, animatedefault: false, persiststate: true, toggleclass: ["", ""], togglehtml: ["suffix", "<img src='../images/plus.gif' class='statusicon' />", "<img src='../images/minus.gif' class='statusicon' />"], animatespeed: "fast", oninit:function(headers, expandedindices){ }, onopenclose:function(header, index, state, isuseractivated){ } })</script>


       
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
	google.load("jquery", "1");
</script>
<!-- Load TinyMCE -->
<script type="text/javascript" src="../jscripts/tiny_mce/jquery.tinymce.js"></script>
<script type="text/javascript">
	$().ready(function() {
		$('textarea.tinymce').tinymce({
			// Location of TinyMCE script
			script_url : '../jscripts/tiny_mce/tiny_mce.js',

			// General options
			theme : "advanced",
			plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",

			// Theme options
			theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
			theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
			theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
			theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_statusbar_location : "bottom",
			theme_advanced_resizing : true,

			// Example content CSS (should be your site CSS)
			content_css : "css/content.css",

			// Drop lists for link/image/media/template dialogs
			template_external_list_url : "lists/template_list.js",
			external_link_list_url : "lists/link_list.js",
			external_image_list_url : "lists/image_list.js",
			media_external_list_url : "lists/media_list.js",

			// Replace values for the template plugin
			template_replace_values : {
				username : "Some User",
				staffid : "991234"
			}
		});
	});
</script>
<!-- /TinyMCE -->
<?php
} else if($_GET['as'] != 'danguudai' && $_GET['as'] != 'edituudai') {
	?>
    <script src="../js/jquery.min2.js"></script>
<script src="../js/jquery.min.menu.js"></script>
<script src="../js/ddaccordion.js"></script>
<script type="text/javascript">ddaccordion.init({headerclass: "submenuheader", contentclass: "submenu", revealtype: "click", mouseoverdelay: 200, collapseprev: true, defaultexpanded: [], onemustopen: false, animatedefault: false, persiststate: true, toggleclass: ["", ""], togglehtml: ["suffix", "<img src='../images/plus.gif' class='statusicon' />", "<img src='../images/minus.gif' class='statusicon' />"], animatespeed: "fast", oninit:function(headers, expandedindices){ }, onopenclose:function(header, index, state, isuseractivated){ } })</script>


       
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
	google.load("jquery", "1");
</script>
<!-- Load TinyMCE -->
<script type="text/javascript" src="../jscripts/tiny_mce/jquery.tinymce.js"></script>
<script type="text/javascript">
	$().ready(function() {
		$('textarea.tinymce').tinymce({
			// Location of TinyMCE script
			script_url : '../jscripts/tiny_mce/tiny_mce.js',

			// General options
			theme : "advanced",
			plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",

			// Theme options
			theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
			theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
			theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
			theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_statusbar_location : "bottom",
			theme_advanced_resizing : true,

			// Example content CSS (should be your site CSS)
			content_css : "css/content.css",

			// Drop lists for link/image/media/template dialogs
			template_external_list_url : "lists/template_list.js",
			external_link_list_url : "lists/link_list.js",
			external_image_list_url : "lists/image_list.js",
			media_external_list_url : "lists/media_list.js",

			// Replace values for the template plugin
			template_replace_values : {
				username : "Some User",
				staffid : "991234"
			}
		});
	});
</script>
<!-- /TinyMCE -->

    <?php
}
?>
</body>
</html>

